import { request } from "../utils/request";


//京津冀城市空气污染
export const fetchJJJcityByPage = (data) => {
  return request.post('/api/CitiesJjj/listPage', data)
}

export const updateJJJcity = (data) => {
    return request.post('/api/CitiesJjj/update', data)
  }
  
export const uploadJJJcity = (data) => {
  return request.post('/api/drone/saveBatch', data)
}

export const deleteJJJcity = (id) => {
  return request.post(`/api/CitiesJjj/delete/${id}`,id)
}

//京津冀站点空气污染
export const fetchJJJsiteByPage = (data) => {
    return request.post('/api/sitesJjj/listPage', data)
  }
//修改数据
export const updateJJJsite = (data) => {
  return request.post('/api/sitesJjj/update', data)
}

//导入数据
export const uploadJJJsite= (data) => {
  return request.post('/api/sitesJjj/saveBatch', data)
}

//删除数据
export const deleteJJJsite = (id) => {
  return request.post(`/api/sitesJjj/delete/${id}`,id)
}


// AOT40臭氧逐日历史数据
export const fetchAOT40ByPage = (data) => {
    return request.post('/api/Aot40/listPage', data)
}

//修改数据
export const updateAOT40 = (data) => {
  return request.post('/api/Aot40/update', data)
}

//导入数据
export const uploadAOT40= (data) => {
  return request.post('/api/Aot40/saveBatch', data)
}

//删除数据
export const deleteAOT40 = (id) => {
  return request.post(`/api/Aot40/delete/${id}`,id)
}

//衡水邢台站点污染数据
  export const fetchHSXTByPage = (data) => {
    return request.post('/api/sitesHSXT/listPage', data)
  }

//修改数据
export const updateHSXT = (data) => {
  return request.post('/api/sitesHSXT/update', data)
}

//导入数据
export const uploadHSXT= (data) => {
  return request.post('/api/sitesHSXT/saveBatch', data)
}

//删除数据
export const deleteHSXT = (id) => {
  return request.post(`/api/sitesHSXT/delete/${id}`,id)
}

  //全国（京津冀地区）污染站点编号-站名-经纬度
  export const fetchNationByPage = (data) => {
    return request.post('/api/jjjSites/listPage', data)
  }

//修改数据
export const updateNation = (data) => {
  return request.post('/api/jjjSites/update', data)
}

//导入数据
export const uploadNation= (data) => {
  return request.post('/api/jjjSites/saveBatch', data)
}

//删除数据
export const deleteNation= (id) => {
  return request.post(`/api/jjjSites/delete/${id}`,id)
}
